import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

// 导入element模块
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

import 'normalize.css/normalize.css';

import * as echarts from 'echarts'
Vue.prototype.$echarts = echarts

Vue.config.productionTip = false

Vue.use(ElementUI);

// 导入axios
import axios from '@/api/http'
// 将axios放到vue原型上，属性$http
Vue.prototype.$http = axios;

let _token = localStorage.getItem("_token");
if (_token) {
    store.commit("common/setToken", _token);
}


new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')